package com.easylinkin.linkappapi.calculaterule.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 计算配置属性
 * </p>
 *
 * @author TongJie
 * @since 2020-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("linkapp_calculate_config_attribute")
public class CalculateConfigAttribute extends Model<CalculateConfigAttribute> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId("id")
    private String id;

    /**
     * 计算配置id
     */
    @TableField("calculate_config_id")
    private String calculateConfigId;

    /**
     * 设备型号id
     */
    @TableField("device_unit_id")
    private String deviceUnitId;

    /**
     * 设备型号code
     */
    @TableField("device_unit_code")
    private String deviceUnitCode;

    /**
     * 属性id
     */
    @TableField("device_attribute_id")
    private String deviceAttributeId;

    /**
     * 属性标志符
     */
    @TableField("attribute_identifier")
    private String attributeIdentifier;

    /**
     * 系数
     */
    @TableField("coefficient")
    private String coefficient;

    /**
     * 数据源id
     */
    @TableField("analyze_data_source_id")
    private String analyzeDataSourceId;

    /**
     * 空间id
     */
    @TableField("space_id")
    private String spaceId;

    /**
     * 租户id
     */
    @TableField("tenant_id")
    private String tenantId;

    /**
     * 组编号
     */
    @TableField("group_number")
    private Integer groupNumber;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
